﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Phone.Tasks;

namespace INdTFramework.Commons
{
    public class Social
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="title">Title of message</param>
        /// <param name="uri">Absolute uri address</param>
        /// <param name="message">Public message</param>
        public static void Share(String title, String uri, String message)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title = title;
            shareLinkTask.LinkUri = new Uri(uri, UriKind.Absolute);
            shareLinkTask.Message = message;

            shareLinkTask.Show();
        }
    }
}
